'''
Created on 18/03/2009

@author: eh01
'''
from Queue import Queue

class EventQueue(object):
    '''
    classdocs
    '''

    def __init__(self):
        '''
        Constructor
        '''
        self.__queue = Queue(0)

    def get_queue(self):
        return self.__queue


    def set_queue(self, value):
        self.__queue = value

    def put(self, event):
        self.__queue.put(event)
    
    def get(self):
        return self.__queue.get()
    
    def empty(self):
        return self.__queue.empty()
    
    queue = property(get_queue, set_queue, None, None)        